package com.cskaoyan.bean.vo;

import com.cskaoyan.bean.entity.Category;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 *  这是查询所有的类目信息返回的Vo
 *
 */
@Data
public class CategoryInfoVo {
    private Integer id;

    private String name;

    private String keywords;

    private String desc;

    private String iconUrl;

    private String picUrl;

    private String level;

    // 子类目 用pid相互连接
    private List<Category> children = new ArrayList<>();

    public CategoryInfoVo(Integer id, String name, String keywords, String desc, String iconUrl, String picUrl, String level, List<Category> children) {
        this.id = id;
        this.name = name;
        this.keywords = keywords;
        this.desc = desc;
        this.iconUrl = iconUrl;
        this.picUrl = picUrl;
        this.level = level;
        this.children = children;
    }

    public CategoryInfoVo() {
    }
}
